<?php
	/**
	 * Class to set purchases attributes
	 */
	class Purchase {
		private $pkId;
		private $date;
		private $units;
		private $quantity;
		private $unitCost;
		private $pkFkRifSupplier;
		private $pkFkCodeProductInventory;
		private $pkFkRifBranchInventory;
		
		/**
		 * Constructor of the purchase
		 */
		public function __construct($pkId, $date, $units, $quantity, $unitCost, $pkFkRifSupplier, 
			$pkFkCodeProductInventory, $pkFkRifBranchInventory) {
			$this -> date = $date;
			$this -> units = $units;
			$this -> quantity = $quantity;
			$this -> unitCost = $unitCost;
			$this -> pkFkRifSupplier = $pkFkRifSupplier;
			$this -> pkFkCodeProductInventory = $pkFkCodeProductInventory;
			$this -> pkFkRifBranchInventory = $pkFkRifBranchInventory;
		}
		
		/**
		 * Getter and setter for attribute $pkId
		 */
		public function setPkId($pkId) {
			$this -> pkId = $pkId;	
		}
		
		public function getPkId() {
			return $this -> pkId;
		}
		
		/**
		 * Getter and setter for attribute $date
		 */
		public function setDate($date) {
			$this -> date = $date;	
		}
		
		public function getDate() {
			return $this -> date;
		}
		
		/**
		 * Getter and setter for attribute $units
		 */
		public function setUnits($units) {
			$this -> units = $units;	
		}
		
		public function getUnits() {
			return $this -> units;
		}
		
		/**
		 * Getter and setter for attribute $quantity
		 */
		public function setQuantity($quantity) {
			$this -> quantity = $quantity;	
		}
		
		public function getQuantity() {
			return $this -> quantity;
		}
		
		/**
		 * Getter and setter for attribute $unitCost
		 */
		public function setUnitCost($unitCost) {
			$this -> unitCost = $unitCost;	
		}
		
		public function getUnitCost() {
			return $this -> unitCost;
		}
		
		/**
		 * Getter and setter for attribute $pkFkRifSupplier
		 */
		public function setPkFkRifSupplier($pkFkRifSupplier) {
			$this -> pkFkRifSupplier = $pkFkRifSupplier;	
		}
		
		public function getPkFkRifSupplier() {
			return $this -> pkFkRifSupplier;
		}
		
		/**
		 * Getter and setter for attribute $pkFkCodeProductInventory
		 */
		public function setPkFkCodeProductInventory($pkFkCodeProductInventory) {
			$this -> pkFkCodeProductInventory = $pkFkCodeProductInventory;	
		}
		
		public function getPkFkCodeProductInventory() {
			return $this -> pkFkCodeProductInventory;
		}
		
		/**
		 * Getter and setter for attribute $pkFkRifBranchInventory
		 */
		public function setPkFkRifBranchInventory($pkFkRifBranchInventory) {
			$this -> pkFkRifBranchInventory = $pkFkRifBranchInventory;	
		}
		
		public function getPkFkRifBranchInventory() {
			return $this -> pkFkRifBranchInventory;
		}
	}
?>